home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Core / PrefsDef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  3.1 KB  |  86 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        PrefsDef.h
  3.  
  4.     Contains:    Constants for prefs
  5.  
  6.     Owned by:    Ed Lai
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <8>     6/27/96    TJ        Added special OpenDoc editors type.
  13.          <7>     6/22/96    EL        1210509: alert when two editors with same
  14.                                     nmap. 1218948: alert when deleting pref
  15.                                     file.
  16.          <6>     6/19/96    EL        1358681: Resource IDs are in the reserved
  17.                                     range.
  18.          <5>      6/4/96    EL        1283131: Separate Alerts for bad alias in
  19.                                     editor folder and in library folder.
  20.          <4>     5/17/96    EL        #1263100: Add constants for update editor
  21.                                     dialog.
  22.          <3>      5/3/96    EL        1333188: define constant for Editor Hint
  23.                                     File Type.
  24.          <2>      2/2/96    TJ        Added defines for the oldest version of
  25.                                     prefrences that we understand.
  26.          <9>     8/30/95    CG        #1257569 FB3:Added kODPrefsFolderNameStrID.
  27.          <8>     8/11/95    jpa        Number rsrcs from subsystem base [1276412]
  28.          <7>     6/22/95    jpa        Added kODBadAliasInEditorsAlertID [1257556]
  29.          <6>      6/9/95    CG        #1203571 implemented nmap caching
  30.                                     mechanism.
  31.          <5>     5/16/95    jpa        Added kODScanEditorsDialogID [1240150]
  32.          <3>     2/14/95    TJ        Fixed copyright date.
  33.          <2>     2/14/95    jpa        Added kODEditorHintFileName [1205141]
  34.          <1>      2/2/95    CG        first checked in
  35.     To Do:
  36. */
  37.  
  38. #ifndef _PREFSDEF_
  39. #define _PREFSDEF_
  40.  
  41. #ifndef _RSRCBASE_
  42. #include "RsrcBase.h"
  43. #endif
  44.  
  45. #define kODPrefsFileNameStrID         (kODCoreRsrcBase + 0)
  46. #define kODEditorsFldrNameStrID     (kODCoreRsrcBase + 1)
  47. #define kODLibsFldrNameStrID        (kODCoreRsrcBase + 2)
  48. #define kODPrefsFolderNameStrID     (kODCoreRsrcBase + 3)
  49. #define kODSpecialEditorType        'oded'
  50.  
  51. #define kODEditorHintFileType '\?\?\?\?'
  52. #define kODEditorHintFileName "\pOpenDocInfo\r"
  53. // This is the invisible file stored on the root of a volume whose data fork
  54. // contains the name of the "Editors" folder. The name of this file is purposely
  55. // NOT localized so that it can be found on all hard disks, regardless of their
  56. // foreign tongues.
  57.  
  58. #define kODCacheFileName "\pODCacheFile\r"
  59. // This is the invisible cache file stored at the top of each folder structure
  60. // whose files contain nmap resources. The name of this file is purposely
  61. // NOT localized so that it can be found on all hard disks, regardless of their
  62. // foreign tongues.
  63.  
  64.  
  65. #define kODScanEditorsDialogID            (kODCoreRsrcBase + 3)
  66. #define kODBadAliasInEditorsAlertID        (kODCoreRsrcBase + 4)
  67. #define kODBadAliasInLibrariesAlertID    (kODCoreRsrcBase + 5)
  68. #define kODEditorNmapClashAlertID        (kODCoreRsrcBase + 6)
  69. #define kODEditorPrefsDamagedAlertID    (kODCoreRsrcBase + 7)
  70.  
  71. #define kScanEditorsProgressItem        1
  72. #define kScanEditorsStopButton               3
  73.  
  74. #define kPICTRsrcType                    'PICT'
  75. #define kScanEditorsProgressBarID        (kODCoreRsrcBase + 0)
  76.  
  77.  
  78.  
  79. // This is the oldest version of prefs that OpenDoc is compatible with
  80. #define kODPrefsCompatiblemajorRev                1            /*1st part of version number in BCD*/
  81. #define kODPrefsCompatibleminorAndBugRev         0            /*2nd & 3rd part of version number share a byte*/
  82. #define kODPrefsCompatiblestage                    0x80        /*stage code: dev, alpha, beta, final*/
  83. #define kODPrefsCompatiblenonRelRev                0            /*revision level of non-released version*/
  84.  
  85. #endif
  86.